import 'package:dio/dio.dart';
import 'package:retrofit/http.dart';
import 'package:todo_project/api/home_img/bing_img_entity.dart';

part 'home_img_api.g.dart';

@RestApi(baseUrl: 'http://www.baidu.com/')
abstract class ImageRequest {
  factory ImageRequest(Dio dio, {String baseUrl}) = _ImageRequest;

  @GET("https://cn.bing.com/HPImageArchive.aspx?format=js&idx=0&n=1")
  Future<BingImgEntity> getHeaderImg();
}
